Skip to content

Conversation

@provokateurin
Copy link
Member

Allows using mkfs.btrfs inside the initrd. Symlinking to btrfs does not work like it does with btrfsck/fsck.btrfs.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@provokateurin provokateurin requested a review from 7c6f434c January 9, 2026 07:31
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Jan 9, 2026
@7c6f434c
Copy link
Member

7c6f434c commented Jan 9, 2026

Shouldn't this be conditional on wanting to run mkfs from initrd?

@provokateurin
Copy link
Member Author

Maybe. I just submitted this because I thought it might be useful, but I can also close the PR if this change is not desirable (e.g. due to larger initrd size).

@7c6f434c
Copy link
Member

Having an option to do this might be useful indeed, but I don't think we want to increase initrd size when the tool won't be used.

@provokateurin
Copy link
Member Author

I decided to switch to boot.initrd.systemd, so I'll have no use for this even myself.

@provokateurin provokateurin deleted the nixos-btrfs-initrd-mkfs branch January 18, 2026 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants